package org.tis.tools.senior.module.developer.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import org.tis.tools.model.enums.CommonEnumDeserializer;
import org.tis.tools.senior.module.developer.entity.enums.ConflictType;
import org.tis.tools.senior.module.developer.entity.enums.FileUpdateType;

import java.io.Serializable;

/**
 * sMergeReportList
 * 
 * @author Auto Generate Tools
 * @date 2018/11/01
 */
@Data
@TableName("s_merge_report_list")
public class SMergeReportList implements Serializable {

    /**
     * serialVersionUID.
     */
    private static final long serialVersionUID = 1L;

    /**
     * 模型名称
     */
    public static final String NAME = "合并报告代码明细";

    /**
     * guid对应表字段
     */
    public static final String COLUMN_GUID = "guid";

    /**
     * guidMergeReport对应表字段
     */
    public static final String COLUMN_GUID_MERGE_REPORT = "guid_merge_report";

    /**
     * projectCode对应表字段
     */
    public static final String COLUMN_PROJECT_CODE = "project_code";

    /**
     * conflictType对应表字段
     */
    public static final String COLUMN_CONFLICT_TYPE = "conflict_type";

    /**
     * updateType对应表字段
     */
    public static final String COLUMN_UPDATE_TYPE = "update_type";

    /**
     * guid逻辑名
     */
    public static final String NAME_GUID = "数据guid";

    /**
     * guidMergeReport逻辑名
     */
    public static final String NAME_GUID_MERGE_REPORT = "合并报告guid";

    /**
     * projectCode逻辑名
     */
    public static final String NAME_PROJECT_CODE = "项目代码";

    /**
     * conflictType逻辑名
     */
    public static final String NAME_CONFLICT_TYPE = "冲突类型";
    /**
     * updateType逻辑名
     */
    public static final String NAME_UPDATE_TYPE = "修改类型";

    /**
     * 数据guid
     */
    @TableId
    private Integer guid;

    /**
     * 合并报告guid
     */
    private Integer guidMergeReport;

    /**
     * 项目代码
     */
    private String projectCode;

    /**
     * 冲突类型
     */
    @JSONField(deserializeUsing = CommonEnumDeserializer.class)
    private ConflictType conflictType;

    /**
     * 文件修改类型
     */
    @JSONField(deserializeUsing = CommonEnumDeserializer.class)
    private FileUpdateType fileUpdateType;
}

